package com.xbfinal.eduservice.mapper;

import com.xbfinal.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xbfinal.eduservice.entity.frontvo.CourseWebVo;
import com.xbfinal.eduservice.entity.vo.CoursePublishVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author xbfinal
 * @since 2023-01-09
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {


     /**
      * 根据课程id查询课程信息
      * @param id
      * @return
      */
     CoursePublishVo getPublishCourseInfo(String id);


     /**
      * 根据id查看课程信息
      * @param courseId
      * @return
      */
     CourseWebVo getBaseCourseInfo(String courseId);
}
